package cn.edu.cqu.fredyvia.forum.storage.service;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.nio.file.Path;

public interface BaseStorageProvider {
    void save(File file, Path path) throws FileNotFoundException;
    void save(File file) throws FileNotFoundException;
    void save(InputStream inputStream, Path path) throws FileNotFoundException;
    void get(Path path,File to) throws IOException;
    void remove(Path path);
    void move(Path sourcePath,Path destPath) throws IOException;
}
